package com.wanmait.recruitment.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.recruitment.mapper.WorkingConditionMapper;
import com.wanmait.recruitment.pojo.WorkingCondition;
import com.wanmait.recruitment.service.WorkingConditionService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class WorkingConditionImpl implements WorkingConditionService {
    @Resource
    private WorkingConditionMapper workingConditionMapper;

    @Override
    public void insert(WorkingCondition object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(WorkingCondition object) {

    }

    @Override
    public WorkingCondition findById(Integer id) {
        return null;
    }

    @Override
    @Cacheable("workingConditionCache")
    public List<WorkingCondition> findAll() {
        return workingConditionMapper.select();
    }

    @Override
    public List<WorkingCondition> findAll(WorkingCondition object) {
        return null;
    }

    @Override
    public PageInfo<WorkingCondition> findPage(int pageNum, int pageSize) {
        return null;
    }
}
